package com.oasys.service;

import com.github.pagehelper.PageInfo;
import com.oasys.entity.po.RolePo;
import com.oasys.entity.vo.RoleVo;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/5/11
 **/
public interface JobService {
    /**
     * 分页查询职位
     * @param jobName name
     * @param page 页码
     * @param size 数量
     * @return list
     */
    PageInfo<RolePo> queryJobByPage(String jobName, int page, int size);

    /**
     * addJob
     * @param jobName name
     * @return bool
     */
    Boolean addJob(String jobName);

    /**
     * update
     * @param roleVo
     * @return
     */
    Boolean updateJob(RoleVo roleVo);

    /**
     * DELETE
     * @param jobId
     * @return
     */
    Boolean delJob(Long jobId);
}
